import React, { Component } from "react";
export let wrapAuth = (ComposedComponent) =>
  class WrapComponent extends Component<any> {
    render() {
      if (this.props.auth) {
        return <ComposedComponent {...this.props} />;
      } else {
        return null;
      }
    }
  };
